﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SILAS.Entidades;
using PagedList;

namespace SILAS.DAO
{
    public class CargoDAO:MasterDAO,ICargoDAO
    {

        public List<Cargo> GetAllFromCargo()
        {
            var query = from c in context.Cargoes
                        orderby c.Descripcion descending
                        select c;

            return query.ToList(); 

        }
    }
}
